dnl Process this file with autoconf to produce a configure script.
AC_INIT(sound.c)

dnl Checks for programs.

dnl Checks for libraries.
dnl Replace `main' with a function in -lGL:
LIBS='-L/usr/X11R6/lib'
CC='gcc'
AC_CHECK_LIB(m, main,, AC_MSG_ERROR(libm is needed))
AC_CHECK_LIB(X11, main,, AC_MSG_ERROR(X11 is needed, course))
AC_CHECK_LIB(GL, main,, AC_MSG_ERROR(OpenGL is needed))
AC_CHECK_LIB(GLU, main,, AC_MSG_ERROR(GLU should come with OpenGL))
AC_CHECK_LIB(pthread, main,, AC_MSG_ERROR(SDL needs pthread to run properly))
AC_CHECK_LIB(SDL, main,, AC_MSG_ERROR(SDL is needed), -lpthread)
AC_CHECK_LIB(SDL_mixer, main,, AC_MSG_ERROR(SDL_mixer is needed))
AC_CHECK_LIB(png, main,, AC_MSG_ERROR(libpng is needed))

dnl Checks for header files.
AC_HEADER_STDC
AC_CHECK_HEADERS(unistd.h)

dnl Checks for typedefs, structures, and compiler characteristics.
AC_C_CONST

dnl Checks for library functions.
AC_CHECK_FUNCS(strstr)

AC_OUTPUT(Makefile)
